package com.ucampus.controller;

import com.ucampus.entity.Manager;
import com.ucampus.entity.ResponseData;
import com.ucampus.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/manager")
public class ManagerController {
    @Autowired
    private ManagerService managerService;

    @PutMapping("/update")
    public ResponseData updateNickname(@RequestBody Manager manager) {
        return managerService.update(manager.getUsername(), manager.getNickname(),manager.getPassword());
    }

}
